import List from "../components/finance/index" //List 是自己定义的名字
import Index from "../components/finance/demo" //Index 是自己定义的名字
import { Button } from "antd";
import { useNavigate } from "react-router-dom"
const FinanceManage = () => {
    const navigate = useNavigate();
    const addClient = () => {
        navigate("/home/finance/add");
    }
    return (
        <>
            <h2>财务管理</h2>
            <div style={{ display: 'flex', marginBottom: '20px' }}>
                <Button type="primary" onClick={addClient} style={{ marginRight: '10px' }}>添加记录</Button>
            </div>
            <Index />
            {/* <List /> */}
        </>
    )
}

export default FinanceManage;